@use "./reset";

.app-container {
  // padding: 15px;
}

// 进度条颜色
#nprogress .bar {
  background-color: var(--el-color-primary);
}

// 全局搜索区域样式
.search-container {
  padding: 18px 16px 0;
  margin-bottom: 16px;
  background-color: var(--el-bg-color-overlay);
  border: 1px solid var(--el-border-color-light);
  border-radius: 4px;

  .search-buttons {
    margin-right: 0;
  }

  .el-form-item {
    margin-bottom: 18px;
  }
}

// 表格区域样式
// .data-table {
//   margin-bottom: 16px;

//   // 表格工具栏区域
//   &__toolbar {
//     display: flex;
//     justify-content: space-between;
//     margin-bottom: 16px;

//     &--actions,
//     &--tools {
//       display: flex;
//       gap: 8px;
//     }
//   }

//   // 表格内容区域
//   &__content {
//     margin: 8px 0;
//   }

//   // 分页区域
//   .el-pagination {
//     justify-content: flex-end;
//     margin-top: 16px;
//   }
// }

// 抽屉和对话框底部按钮区域
.dialog-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 16px;
}

// table 组件样式重写
.plus-pagination {
  align-items: center;
  justify-content: center !important;
  padding: 12px 0 !important;
}
.el-pagination {
  justify-content: center;
}

.el-button + .el-button {
  margin-left: 10px !important;
}

.el-form-item--default {
  margin-bottom: 16px !important;
}

.plus-form .plus-form__footer {
  justify-content: center !important;
}
// messageBox  组件样式重写
.el-overlay.is-message-box .el-overlay-message-box {
  top: 15vh !important;
  padding: 0 !important;
}
.el-message-box {
  max-width: 460px !important;
  padding: 0 !important;
  vertical-align: top !important;
  border-radius: 0 !important;
  .el-message-box__header {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 !important;
    font-size: 18px;
    line-height: 50px;
    color: #fff;
    background: linear-gradient(
      90deg,
      rgba(0, 86, 205, 1) 0%,
      rgba(83, 155, 255, 1) 100%,
      rgba(96, 146, 228, 1) 100%
    );
    .el-message-box__title {
      padding-left: 33px;
      color: #fff;
    }
  }
  .el-message-box__content {
    padding: 58px 68px 0 68px;
    text-align: center;
    .el-message-box__container {
      justify-content: center;
      font-size: 16px;
      color: #101010;
    }
  }
  .el-message-box__btns {
    flex-direction: row-reverse !important;
    justify-content: center;
    padding-top: 44px !important;
    padding-bottom: 44px !important;
    margin: 0 auto;
  }
}
.message-box-confirm-button {
  width: 98px;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(0, 108, 222, 1) 0%,
    rgba(41, 182, 244, 1) 100%,
    rgba(0, 163, 235, 1) 99%
  );
  border: none !important;
}
.message-box-cancel-button {
  width: 98px;
  margin-left: 55px;
  font-size: 15px;
}

// dialog 组件样式重写
.el-dialog__header {
  height: 50px;
  padding-left: 33px;
  font-size: 18px;
  line-height: 50px;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(0, 86, 205, 1) 0%,
    rgba(83, 155, 255, 1) 100%,
    rgba(96, 146, 228, 1) 100%
  );
  .el-dialog__title {
    color: #fff;
  }
}

.el-dialog__body {
  padding: 25px 68px 0 68px;
}
.small-dialog {
  .el-dialog__body {
    padding: 58px 68px 0 68px;
    text-align: center;
  }
}

// 菜单样式重写

.el-menu .el-menu--inline {
  background-color: #fff !important;
}

.el-menu-item:hover {
  background-color: rgba(56, 148, 255, 0.3) !important;
}

.el-sub-menu__title:hover {
  background-color: rgba(56, 148, 255, 0.3) !important;
}

.el-menu--horizontal .el-menu-item:not(.is-disabled):hover,
.el-menu--horizontal .el-menu-item:not(.is-disabled):focus {
  outline: none;
  background-color: rgba(56, 148, 255, 0.4) !important;
}

.el-input-group__append,
.el-input-group__prepend {
  background-color: #fff !important;
}

.el-form-item__label {
  justify-content: flex-start !important;
}
